package com.mjk.common.core.jdbc.sphere;


import com.mjk.common.core.jdbc.sphere.impl.table.CapacityPreciseShardingAlgorithm;
import com.mjk.common.core.jdbc.sphere.impl.table.TimeShardingAlgorithm;

/**
 * 分表策略枚举
 * @author Administrator
 *
 */
public enum StrategyEnum {
	PRECISE("", CapacityPreciseShardingAlgorithm.class),
	TIME("{%s..%s}$->{%s..12}", TimeShardingAlgorithm.class);
	public final String strategy;
	public final Class<?> algorith;
	StrategyEnum(String strategy,Class<?> algorith){
		this.strategy = strategy;
		this.algorith = algorith;
	}
}
